package com.ins1st.plus.api.system.log.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 系统日志表
 * </p>
 *
 * @author sun
 * @since 2019-09-09
 */
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 日志标题
     */
    @TableField("log_title")
    private String logTitle;

    /**
     * 请求IP
     */
    @TableField("request_ip")
    private String requestIp;

    /**
     * 请求方法
     */
    @TableField("request_method")
    private String requestMethod;

    /**
     * 请求参数
     */
    @TableField("request_params")
    private String requestParams;

    /**
     * 请求耗时
     */
    @TableField("request_time")
    private String requestTime;

    /**
     * 请求是否成功
     */
    @TableField("request_success")
    private String requestSuccess;

    /**
     * 异常信息
     */
    @TableField("ex_message")
    private String exMessage;

    @TableField("request_class")
    private String requestClass;

    @TableField("request_url")
    private String requestUrl;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getLogTitle() {
        return logTitle;
    }

    public void setLogTitle(String logTitle) {
        this.logTitle = logTitle;
    }
    public String getRequestIp() {
        return requestIp;
    }

    public void setRequestIp(String requestIp) {
        this.requestIp = requestIp;
    }
    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }
    public String getRequestParams() {
        return requestParams;
    }

    public void setRequestParams(String requestParams) {
        this.requestParams = requestParams;
    }
    public String getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(String requestTime) {
        this.requestTime = requestTime;
    }
    public String getRequestSuccess() {
        return requestSuccess;
    }

    public void setRequestSuccess(String requestSuccess) {
        this.requestSuccess = requestSuccess;
    }
    public String getExMessage() {
        return exMessage;
    }

    public void setExMessage(String exMessage) {
        this.exMessage = exMessage;
    }

    public String getRequestClass() {
        return requestClass;
    }

    public void setRequestClass(String requestClass) {
        this.requestClass = requestClass;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    @Override
    public String toString() {
        return "SysLog{" +
            "id=" + id +
            ", logTitle=" + logTitle +
            ", requestIp=" + requestIp +
            ", requestMethod=" + requestMethod +
            ", requestParams=" + requestParams +
            ", requestTime=" + requestTime +
            ", requestSuccess=" + requestSuccess +
            ", exMessage=" + exMessage +
        "}";
    }
}
